package com.xz.knowledgeDuplication.pattern.factory.abstract_factory;

import com.xz.knowledgeDuplication.pattern.factory.method_factory.AmericanCoffee;
import com.xz.knowledgeDuplication.pattern.factory.method_factory.Coffee;

/**
 * 美式工厂
 *
 * @author 召
 * @date 2022-03-03 21:03:33
 */
public class AmericanDessertFactory implements DessertFactory{

    @Override
    public Coffee createCoffee() {
        return new AmericanCoffee();
    }

    @Override
    public Dessert createDessert() {
        return new MatchMousse();
    }
}
